<%--
  Created by IntelliJ IDEA.
  User: Fling
  Date: 2020/3/10
  Time: 11:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <title>Title</title>
    <link href="${pageContext.request.contextPath}/css/index.css" rel="stylesheet" type="text/css">
</head>
<body>
<span>欢迎:${user.name}</span><h4>${user.role.roleName}</h4>
<div>
    <div id="left">
        <ul>
            <c:forEach var="per" items="${user.role.permissionList}">
                <li>
                    <a href="${pageContext.request.contextPath}${per.perUrl}" target="show">${per.perName}</a>
                </li>
            </c:forEach>
        </ul>

    </div>
    <div id="right">
        <iframe name="show" scrolling="auto" src="${pageContext.request.contextPath}/welcomejsp.jsp"></iframe>
    </div>
</div>
</body>
</html>
